package com.wish.wishfinancial_service.controller;


import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import com.github.pagehelper.PageInfo;
import com.wish.wishfinancial_service.entity.TCwPaymentPlan;
import com.wish.wishfinancial_service.service.ITCwPaymentPlanService;
import dto.financialDto.TCwPaymentPlanDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;
import vo.ResultEntity;

/**
 * <p>
 *  前端控制器
 * </p>
 * @author pengge
 * @since 2021-04-14
 */
@RestController
@RequestMapping("/tCwPaymentPlan")
public class TCwPaymentPlanController {


    @Autowired
    private ITCwPaymentPlanService cwPaymentPlanService;

    @RequestMapping("selects")
    public ResultEntity selects(TCwPaymentPlanDto tCwPaymentPlanDto){
        PageInfo<TCwPaymentPlan> info=cwPaymentPlanService.selects(tCwPaymentPlanDto);
        return ResultEntity.ok("200",info);
    }
}

